package com.dubbo1.lib.cloud;


import com.dubbo1.api.dto.DubboBaseDto;
import com.dubbo1.api.dto.req.Dubbo1ParamDto;
import com.dubbo1.lib.cloud.impl.Dubbo2CloudImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "nacos2-service", path = "/dubbo2", fallbackFactory = Dubbo2CloudImpl.class)
public interface Dubbo2Cloud {

    @PostMapping(value = "/test")
    DubboBaseDto dubbo2test(@RequestBody Dubbo1ParamDto req);

    @PostMapping(value = "/test2")
    DubboBaseDto dubbo2test2(@RequestBody Dubbo1ParamDto req);

}
